//折线图
	function lineChart1() {
		
		var lineChart = echarts.init(document.getElementById('lineChart'));
		option = {

			tooltip: {
				trigger: 'axis',
				axisPointer: {
					type: 'cross',
					label: {
						backgroundColor: '#6a7985'
					}
				}
			},
			grid: {
				left: '2%',
				right: '3%',
				bottom: '0',
				top: '30',
				containLabel: true
			},
			xAxis: [{
				type: 'category',
				boundaryGap: false,
				//					data: ['10.01', '10.02', '10.03', '10.04', '10.05', '10.06', '10.07', '10.08', '10.09', "10.10", "10.11", ],
				data: [],
				axisLine: {
					lineStyle: {
						color: '#d63a3b'
					},
				},
				axisLabel: {
					textStyle: {
						color: "#999",
					},
				},

			}],
			yAxis: [{
				type: 'value',
				axisLine: {
					lineStyle: {
						color: '#d63a3b'
					},
				},
				axisLabel: {
					textStyle: {
						color: "#999",
						fontSize: '14px'
					},
				},

			}],
			series: [{
				//          name:'搜索引擎',
				type: 'line',
				label: {
					normal: {
						show: false,
						position: 'top'
					}
				},
				areaStyle: {
					normal: {}
				},
				//					data: [420, 542, 601, 1034, 1890, 1930, 1320, 820, 672, 801, 534, 390, ],
				data: [],
				itemStyle: {
					normal: {
						color: '#d63a3b',

					}
				},
				lineStyle: {
					normal: {
						width: 1,
						color: '#d63a3b',
					}
				},
				symbolSize: 2, //拐点大小
				areaStyle: { //区域填充样式
					normal: {
						//线性渐变
						color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
							offset: 0,
							color: '#f8dcdc' // 0% 处的颜色
						}, {
							offset: 1,
							color: '#fff6f6' // 100% 处的颜色
						}], false)
					}
				},

			}]
		};

		lineChart.setOption(option);

		loadlineChart1()
		//ajax数据加载
		function loadlineChart1() {
			var names = [];
			var nums = [];

			var data = JSON.stringify({
				'searchword': name,
				'pageSize': 7,
			});

			$.ajax({
				type: "post",
				url: 'http://139.224.208.224:8080/qi-radar/sensation/getHeatChart',
				dataType: 'json',
				contentType: "application/json ",
				data: data,
				success: function(data) {

					console.log(data)
					if(data.code == 0) {
						var data = data.data;
						for(var i = 0; i < data.length; i++) {
							names.push(data[i].days);
							nums.push(data[i].heatValue);
						};

						lineChart.setOption({
							xAxis: {
								data: names
							},
							series: [{
								data: nums
							}]
						});

					} else {
						alert(data.errMsg)
					};

				}
			});

		};
	}